<?php if($this->identity == null) {
if($this->loginMessage != null) {
	echo $this->loginMessage;
}
?>
<div id="loginForm" class="span-6">
<?php
echo $this->form;
?>
</div>

<?php } else {?>
<h2 class="span-6">My Account</h2>
<p class="span-6">Welcome back <?php echo $this->identity->username; ?></p>
<a class="span-6" href="/users/logout">Log out</a>
<?php }?>
